			<div class="panelTabs">
				<div class="tabs">
					<a class="{if isset($activeCompanyObj) and ($activeCompanyObj neq null)}{else}selected{/if}" title="Categories" id="categoriestab" href="categories">Categories</a>
					<a class="{if isset($activeCompanyObj) and ($activeCompanyObj neq null)}selected{/if}" title="Brands" id="brandstab" href="brands">Brands</a>
				</div>
				
				<div class="backgroundFrame280Top"></div>
				<div class="backgroundFrame280">
				
				<div class="tabPanel {if isset($activeCompanyObj) and ($activeCompanyObj neq null)}hidden{/if}"> <!--  to jest kontener zakĹ‚adki -->
					<ul class="categoryMenu">
					{foreach from=$categoryTree item=category}
					{assign var=c1desc value=$category->getCategoryDescription()}
					{assign var=c1Children value=$category->getChildren()}
					{if $c1Children|@count > 0}
						<li {if $category->getSlug() neq $categoryKey}class="closed"{/if}><a title="{$c1desc->getName()}">{$c1desc->getName()}</a>
						
						<ul>
						{foreach from=$c1Children item=childCategory}
						{assign var=c2desc value=$childCategory->getCategoryDescription()}
						<li {if $childCategory->getSlug() eq $subCategoryKey}class="selected"{/if}><a href="{url label=mainCategoryView categoryKey=$category->getSlug() subCategoryKey=$childCategory->getSlug()}" title="{$c2desc->getName()}">{$c2desc->getName()} <span>({$childCategory->getProductsCount()})</span></a></li>
						{/foreach}
						</ul>
						</li>
					{/if}
					{/foreach}
					</ul>
					
					
					<!-- panelTab1 -->
					</div>
					<div class="tabPanel {if isset($activeCompanyObj) and ($activeCompanyObj neq null)}{else}hidden{/if}"> <!--  to jest kontener zakĹ‚adki -->
					<ul class="categoryMenu">
						{foreach from=$brandsTree.categories item=cat name=list}
						{assign var=catDesc value=$cat->getCategoryDescription()}
						{assign var=k value=$cat->getId()}
						<li {if (!isset($selectedBrandCategory) and ($smarty.foreach.list.index) > 0) or (isset($selectedBrandCategory) and ($selectedBrandCategory neq $cat->getId()))} class="closed"{/if}><a title="{$catDesc->getName()}">{$catDesc->getName()}</a>
							<ul>
							{foreach from=$brandsTree.data[$k] item=d}
							{assign var=cmp value=$d->getManufacturer()}
							<li {if isset($activeCompanyObj) and ($activeCompanyObj neq null) and ($cmp->getId() eq $activeCompanyObj->getId())}class="selected"{/if}><a href="{url label=mainCategoryView categoryKey=$cat->getSlug() subCategoryKey=$cmp->getSlug()}" title="{$cmp->getName()}">{$cmp->getName()}<span>({$d->getCount()})</span></a></li>
							{/foreach}
							</ul>
						</li>
						{/foreach}
					</ul>
					
					<!-- panelTab2 -->
					</div>
				<!-- frame280 -->
				</div>
				<div class="backgroundFrame280Bottom"></div>
			</div>	